//
//  MGTabPageBarStyle.h
//  Mango
//
//  Created by 胡超 on 2020/6/29.
//  Copyright © 2020 HuChao. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, MGTabLayoutType) {
    MGTabLayoutTypeLeft,
    MGTabLayoutTypeCenter,
    MGTabLayoutTypeRight,
    MGTabLayoutTypeFlexible,
    MGTabLayoutTypeAutoScroll,
};

typedef NS_ENUM(NSInteger, MGTabIndicatorType) {
    MGTabIndicatorTypeFixedWidth,     // 保持固定宽度
    MGTabIndicatorTypeItemWidth,      // 和Item宽度一致
    MGTabIndicatorTypeItemTitleWidth, // 和Item标题宽度一致
};

@interface MGTabPageBarStyle : NSObject

@property (nonatomic,assign) MGTabLayoutType layoutType;

@property (nonatomic,strong) UIFont *titleFont;
@property (nonatomic,assign) CGFloat titlePadding;
@property (nonatomic,assign) CGFloat itemSpace;
@property (nonatomic,assign) UIEdgeInsets contentInsets;


// default is darkGrayColor
@property (nonatomic,strong) UIColor *normalTintColor;
// default is systemBlueColor
@property (nonatomic,strong) UIColor *selectTintColor;
// 选中缩放，默认1.0，不缩放
@property (nonatomic,assign) CGFloat selectedItemScale;


@property (nonatomic,assign) BOOL showIndicatorView;
/** 指示条宽度类型*/
@property (nonatomic,assign) MGTabIndicatorType indicatorType;
/** 指示条宽度，只有当activityType为QKActivityTypeKeepFixedWidth的时候该属性才会生效*/
@property (nonatomic,assign) CGFloat indicatorWidth;
/** 指示条高度*/
@property (nonatomic,assign) CGFloat indicatorHeight;

@property (nonatomic,strong,nullable) UIColor *indicatorTintColor;
@property (nonatomic,strong,nullable) UIImage *indicatorImage;
/** 指示条位置偏移,需要注意的是指定的size.height是指示条垂直位置偏移，size.width不会调整水平位置，而是调整指示条宽度*/
@property (nonatomic,assign) CGSize  indicatorOffset;
@property (nonatomic,assign) CGFloat indicatorCornerRadius;

@end

NS_ASSUME_NONNULL_END
